﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace AdminUI.Controllers
{
    public class ExperienceTypeController : BaseController
    {
        // GET: ExperienceType
        public ActionResult Add()
        {
            return PartialView();
        }
        public ActionResult Edit(int? id)
        {
            if (!id.HasValue)
            {
                return View("error");
            }
            var data = HttpHelper.HttpGet<Result<Param_ExperienceType>>(Tools.ApiPath+ "api/ExperienceType/Find/"+id, "get");
            if (data.Code==200)
            {
                return PartialView(data.Data);
            }
            return View("error");
        }
    }
}